jelovirt / dita-generator

DITA Generator is a Python program that generates DITA shell DTDs, DITA topic specialization stubs, and DITA-OT plug-in stubs.
http://dita-generator-hrd.appspot.com/
Apache License 2.0
18 stars 2 forks source link

Add hyperlink "on page #" control #2

Closed jelovirt closed 12 years ago

jelovirt commented 12 years ago

There should be a way to control if " on page #" appears after hyperlinks.

jelovirt commented 12 years ago

Can be implemented by overriding "On the page" variable for all languages with an empty string.

jannylund commented 12 years ago

For all variables, it would be nice to be able to override them with empty strings to zero them out. Currently DITA-OT fails with errors if the correct amount of parameters sent to insertVariable is not present in the variable string.

(This should preferably go into DITA-OT core. And places where the string generates a block, the block should be left out if the string is empty, for example Notices title block, etc)

EDIT: This comment is wrong. Not all calls to insertVariable fails if they are zeroed out.