diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-12-28 12:46:53 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-12-28 12:46:53 -0500 |
commit | e92c86268c6ecee130e80e9449f911d0764f65c0 (patch) | |
tree | 988766818051a03efe55c3e2923c57887a5bbbb7 /lib | |
parent | v4 v3: html_segments (by_filename by_filetype) broken internal doc links fixed (diff) |
v4 v3: param, minor change any legacy <br> line break in metadata markup to \\
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v3/param.rb | 1 | ||||
-rw-r--r-- | lib/sisu/v4/param.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/sisu/v3/param.rb b/lib/sisu/v3/param.rb index bffba529..3a4ea46d 100644 --- a/lib/sisu/v3/param.rb +++ b/lib/sisu/v3/param.rb @@ -227,6 +227,7 @@ module SiSU_Param if x =~/^%\s/ #ignore comment elsif x =~/:(\S+?):\s+(.+)/ a,b=/:(\S+?):\s+(.+)\Z/m.match(x)[1,2] + b=b.gsub(/\s*<br(?: \/)?>\s*/,' \\\\\\ ') b=if b =~/\n/m (b =~/;\n/m) \ ? (b.split(/;\s*\n\s*/).join(';')) diff --git a/lib/sisu/v4/param.rb b/lib/sisu/v4/param.rb index 40f9b983..b205ef6a 100644 --- a/lib/sisu/v4/param.rb +++ b/lib/sisu/v4/param.rb @@ -230,6 +230,7 @@ module SiSU_Param if x =~/^%\s/ #ignore comment elsif x =~/:(\S+?):\s+(.+)/ a,b=/:(\S+?):\s+(.+)\Z/m.match(x)[1,2] + b=b.gsub(/\s*<br(?: \/)?>\s*/,' \\\\\\ ') b=if b =~/\n/m (b =~/;\n/m) \ ? (b.split(/;\s*\n\s*/).join(';')) |