= DITA = Please add white space handling examples. == Example 1 == Not really an example as much as a template to copy. {{{ DITA markup goes here. }}} == Conrefs with white space == We have some keyword conrefs that we use for product names, so the next time we have to change our product name, we can just fix the conref file. Instead of having the 'long' version and the 'short' version, we have a 'brand' keyword and a 'product' keyword. These keywords are always used next to each other. I added a space to the text of the source keyword because I can have no control over the white space between two elements in my source DITA. Our Brand has a in it. This breaks the white space handling. If there is any sort of white space in the source file between the keywords, then you get the space between the brand and the product name. If you remove the from the keyword in the conref file, the white space in the keyword is preserved. A side note - if you have a keyword inside of some other inline formatting such as , , etc., the inline formatting is lost on the keyword. This happens even if you don't have a character format defined for Keyword. I know I could work around this using default.wwconfig to make a zillion types of keywords, but I really don't want to. === conref file === {{{ Conrefs Testing conrefs with spaces

First word

Second

}}} === concept sample === {{{ Test Concept <keyword conref="conref.dita#conref/f"></keyword> <keyword conref="conref.dita#conref/s"></keyword> A topic to test processing of white space between .

Testing in a paragraph. . And some text after it. Also, if used inside of some inline formatting such as Notice the italics don't work on the keyword

  • Testing in a li.
  1. And again in an ol li
In a table title <keyword conref="conref.dita#conref/f"></keyword><keyword conref="conref.dita#conref/s"></keyword>

Header and in an entry

What happens if you have multiple paragraphs in a table cell.

Let’s try, shall we?

And now lets put a list in the table

  • Testing in a li.
  • And putting them inside a string of text
}}} == Test Project Created == Attached as [[attachment:DITA White Space.zip]]. == Sample Project from Nadine == Attached as [[attachment:ph_space_start_sample.zip]]. == Updates for 2012-02-21 == I have located the source of the issue. Fixed in an override to {{{character.xsl}}} at: {{{ Formats\Adapters\xml\scripts\dita\xsl\generate-xml\character.xsl }}} Updated archives: * Attached as [[attachment:DITA White Space.2012-02-21.zip]]. * Attached as [[attachment:ph_space_start_sample.2012-02-21.zip]].