diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-09-05 01:24:49 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-09-05 01:24:49 -0400 |
commit | 9432d0345a982f2c64c684cc913b704cca5660f5 (patch) | |
tree | 969e72c8a68a9f01a6ab3c1e05e8d72697ca9fe5 /lib/sisu/v0/dal_doc_str_code.rb | |
parent | dal, bullet footnotes fix (check numbered bullets, should also be ok) (diff) |
character given to represent non-break space in internal code (dal, constants and affected downstream code)
Diffstat (limited to 'lib/sisu/v0/dal_doc_str_code.rb')
-rw-r--r-- | lib/sisu/v0/dal_doc_str_code.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v0/dal_doc_str_code.rb b/lib/sisu/v0/dal_doc_str_code.rb index 82ada040..27e20d51 100644 --- a/lib/sisu/v0/dal_doc_str_code.rb +++ b/lib/sisu/v0/dal_doc_str_code.rb @@ -170,7 +170,7 @@ module SiSU_document_structure_code data.each do |line| if line =~/\S/ \ and line !~/^code\{|^\}code|#{Mx[:gr_o]}code.+/ - line.gsub!(/\s\s/,' ') + line.gsub!(/\s\s/,"#{Mx[:nbsp]}#{Mx[:nbsp]}") line.gsub!(/^/,"#{Mx[:gr_o]}codeline#{Mx[:gr_c]}") if type=='code' # try sort for texpdf special case if line =~/(?:https?|file|ftp):\/\/\S+$/ line.gsub!(/$/," #{Mx[:br_nl]}") |