aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG_v23
-rw-r--r--data/doc/sisu/v2/CHANGELOG3
-rw-r--r--lib/sisu/v2/texpdf.rb1
3 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG_v2 b/CHANGELOG_v2
index 3736a8ac..1ab0c980 100644
--- a/CHANGELOG_v2
+++ b/CHANGELOG_v2
@@ -18,6 +18,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.6.orig.tar.gz
sisu_2.7.6-1.dsc
sisu_2.7.6-1.diff.gz
+ * texpdf, codeblocks, code-line continuation backslash dropped, fix
+ (requested fix, Ben Armstrong)
+
* shared_metadata, odf, url characters to not match
* sisu_convert, basic conversion script (seldom used/tested) start to get it
diff --git a/data/doc/sisu/v2/CHANGELOG b/data/doc/sisu/v2/CHANGELOG
index 2a9710b0..156afe9f 100644
--- a/data/doc/sisu/v2/CHANGELOG
+++ b/data/doc/sisu/v2/CHANGELOG
@@ -18,6 +18,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.6.orig.tar.gz
sisu_2.7.6-1.dsc
sisu_2.7.6-1.diff.gz
+ * texpdf, codeblocks, code-line continuation backslash dropped, fix
+ (requested fix, Ben Armstrong)
+
* shared_metadata, odf, url characters to not match
* sisu_convert, basic conversion script (seldom used/tested) start to get it
diff --git a/lib/sisu/v2/texpdf.rb b/lib/sisu/v2/texpdf.rb
index 91cd84b6..32b0d2ff 100644
--- a/lib/sisu/v2/texpdf.rb
+++ b/lib/sisu/v2/texpdf.rb
@@ -438,6 +438,7 @@ module SiSU_TeX
dob.tmp=sp_char.special_characters_safe
dob.tmp.gsub!(/#{Mx[:nbsp]}/,'{~}')
#dob.tmp.gsub!(/#{Mx[:nbsp]}\s*/,'{~}')
+ dob.tmp.gsub!(/ \\( |#{Mx[:br_nl]})/,' {\textbackslash}\1')
dob.tmp.gsub!(/(?:#{Mx[:br_nl]}\s*)+/,' \\\\\\ ') #watch
dob.tmp.gsub!(/\n\n\n/m," \\newline\n\n") #watch
ocn=SiSU_TeX_Pdf::Format_text_object.new(@md).ocn_display(dob)