aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/texpdf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/texpdf.rb')
-rw-r--r--lib/sisu/v2/texpdf.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sisu/v2/texpdf.rb b/lib/sisu/v2/texpdf.rb
index 92f8e0ba..363cfc8c 100644
--- a/lib/sisu/v2/texpdf.rb
+++ b/lib/sisu/v2/texpdf.rb
@@ -341,10 +341,6 @@ module SiSU_TeX
if dob.tmp =~/#{Mx[:lnk_o]}.+?#{Mx[:lnk_c]}#{Mx[:rel_o]}\S+?#{Mx[:rel_c]}/
dob.tmp=SiSU_TeX_Pdf::Format_text_object.new(@md,dob.tmp).url_str_internal(dob.tmp)
end
- if dob.is=='para' \
- and dob.bullet_
- dob.tmp='$\txtbullet$\hspace{\enspace}' + dob.tmp
- end
elsif dob.is =='break'
if dob.obj==Mx[:br_page]; dob.tmp='\newpage'
elsif dob.obj==Mx[:br_page_new]; dob.tmp='\clearpage'
@@ -406,7 +402,7 @@ module SiSU_TeX
@lineone=case dob.is
when /alt|group|verse/
dob.tmp.gsub!(/#{Mx[:nbsp]}/m,'{~}')
- dob.tmp.gsub!(/#{Mx[:gl_bullet]}/m,'$\txtbullet$\hspace{\enspace}')
+ dob.tmp.gsub!(/#{Mx[:gl_bullet]}/m,'$\txtbullet$\hspace{\enspace}') #Bullet environment not used for grouped text, ∴ no hanging indent here
dob.tmp.gsub!(/#{Mx[:br_nl]}+/m,"\n\n") #match not ideal, but currently not inserting extra newlines anyway
ocn=SiSU_TeX_Pdf::Format_text_object.new(@md).ocn_display(dob)
dob.tmp=if dob.is=='group' \
@@ -506,7 +502,9 @@ module SiSU_TeX
else dob.tmp='' # dob.tmp={:l =>'',:p =>''}
end
when 'para'
- if dob.indent \
+ if dob.bullet_
+ dob.tmp=tst.bullet
+ elsif dob.indent \
and dob.indent =~/[1-9]/
dob.tmp=tst.indent
else