Changeset 34221 for main/trunk/greenstone2/perllib/plugins/TextPlugin.pm
- Timestamp:
- 2020-06-30T00:19:32+12:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/TextPlugin.pm
r34220 r34221 138 138 $$textref =~ s/</</g; 139 139 $$textref =~ s/>/>/g; 140 141 142 # $all_text gets written out into an xml context and represents the html version of a doc, 143 # allowing the use of html entities for the tab character (	) 144 # But docprint.pm, which writes the doc_obj into doc.xml, removes tabs for XMLParser reasons 145 # Tabs (ASCII \x09) may be meaningful spacing in text files to preserve whitespace formatting 146 # as we're trying to do by nesting tabs in <pre> tags. 147 # So before docprint.pm removes tabs stops, replacing them here with their entity reference 148 # to allow <pre> tags to continue preserving any tabs in the final html display. 149 $$textref =~ s/\x09/	/g; 150 140 151 141 152 # insert preformat tags and add text to document object
Note:
See TracChangeset
for help on using the changeset viewer.