aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/texinfo_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/texinfo_format.rb')
-rw-r--r--lib/sisu/v2/texinfo_format.rb8
1 files changed, 4 insertions, 4 deletions
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!