Fixed a subtle bug in RedclothForTex
This commit is contained in:
parent
41b3468a57
commit
4f04ff39e9
2 changed files with 3 additions and 4 deletions
|
@ -13,7 +13,7 @@ end
|
|||
|
||||
|
||||
def table_of_contents(text, pages)
|
||||
text.gsub!( /^([#*]+? .*?)$(?![^#*])/m ) do |match|
|
||||
text.gsub( /^([#*]+? .*?)$(?![^#*])/m ) do |match|
|
||||
lines = match.split( /\n/ )
|
||||
last_line = -1
|
||||
depth = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue