aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-09-25 22:56:31 -0400
committerRalph Amissah <ralph@amissah.com>2010-09-25 22:58:49 -0400
commita69174130de52fa28b02ace087c03d7ec7553b54 (patch)
tree1f8eaed5ab5a0b2b02c604b74d155ab17c146e8b /lib
parentversion update 2.7.1 (diff)
texinfo ocn decoration a hash (instead of angle braces) (+changelog)
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v2/texinfo.rb4
-rw-r--r--lib/sisu/v2/texinfo_format.rb8
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/v2/texinfo.rb b/lib/sisu/v2/texinfo.rb
index 871a2b3e..bcff4915 100644
--- a/lib/sisu/v2/texinfo.rb
+++ b/lib/sisu/v2/texinfo.rb
@@ -315,8 +315,8 @@ module SiSU_TexInfo
dob.obj=nil
else
if dob.is=='para' \
- and dob.obj !~/<#{dob.ocn}>/
- dob.obj="#{dob.obj} <#{dob.ocn}>"
+ and dob.obj !~/##{dob.ocn}/
+ dob.obj="#{dob.obj} ##{dob.ocn}"
end
end
end
diff --git a/lib/sisu/v2/texinfo_format.rb b/lib/sisu/v2/texinfo_format.rb
index 9e8afb10..a17fdb65 100644
--- a/lib/sisu/v2/texinfo_format.rb
+++ b/lib/sisu/v2/texinfo_format.rb
@@ -295,8 +295,8 @@ WOK
end
def clean(dob)
if dob.is=='heading' \
- and dob.obj !~/<#{dob.ocn}>/
- dob.obj="#{dob.obj} <#{dob.ocn}>"
+ and dob.obj !~/##{dob.ocn}/
+ dob.obj="#{dob.obj} ##{dob.ocn}"
end
dob.obj.gsub!(/<:#>/,'')
dob.obj.strip!
@@ -559,8 +559,8 @@ WOK
end
def clean(dob,txt)
if dob.is=='heading' \
- and txt !~/<#{dob.ocn}>/
- txt="#{dob.obj} <#{dob.ocn}>"
+ and txt !~/##{dob.ocn}/
+ txt="#{dob.obj} ##{dob.ocn}"
end
txt.gsub!(/<:#>/,'')
txt.strip!