Changeset 47 in default for trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui
- Timestamp:
- 12/01/10 09:44:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfHtmlFormatterVisitor.java
r46 r47 356 356 newLineOffsetCounter = 0; 357 357 358 if (node.getRulenumber() > 0) 359 text(node.getRulenumber() + ". "); 360 361 String prefix = "<span lang=EN-GB style='mso-no-proof:no'><a name=\"T" + node.getName() + "\">"; 358 String supportFieldsPrefix = "<!--[if supportFields]><span lang=EN-GB style='mso-no-proof:no'><span\r\n" + 359 "style='mso-element:field-begin'></span><span\r\n" + 360 "style='mso-spacerun:yes'> </span>AUTONUM<span style='mso-spacerun:yes'> \r\n" + 361 "</span></span><![endif]-->"; 362 String supportFieldsSuffix = "<!--[if supportFields]><span\r\n" + 363 "lang=EN-GB style='mso-no-proof:no'><span style='mso-element:field-end'></span></span><![endif]-->"; 364 String supportFieldsEnabler = "<![if !supportFields]>"; 365 String supportFieldsDisabler = "<![endif]>"; 366 367 if (node.getRulenumber() > 0) { 368 textTransformed(node.getRulenumber() + ". ", supportFieldsPrefix + "<span lang=EN-GB style='mso-no-proof:no'>" + supportFieldsEnabler + node.getRulenumber() + ". " + supportFieldsDisabler + "</span>" + supportFieldsSuffix); 369 } 370 371 String prefix = "<span lang=EN-GB style='mso-no-proof:no'><a name=\"T" + node.getName() + "\"></span>"; 362 372 // metaText(prefix); 363 373 textTransformed(node.getName(), prefix + node.getName().replaceAll("[ \t\r\n]", "") + "</a>");
Note: See TracChangeset
for help on using the changeset viewer.