diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-10-01 15:36:21 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-10-01 15:36:21 -0400 |
commit | 02cc96fb1393812f5b35fbb6770d0469cafe07f0 (patch) | |
tree | de0ec27a0f3b50080c887c423363085c0c9ad441 /lib/sisu/v3/dal_syntax.rb | |
parent | v3: cosmetic code, true ? x : y (diff) |
v3: cosmetic code, if, else, remove some semicolons (;) replace with newlines
Diffstat (limited to 'lib/sisu/v3/dal_syntax.rb')
-rw-r--r-- | lib/sisu/v3/dal_syntax.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sisu/v3/dal_syntax.rb b/lib/sisu/v3/dal_syntax.rb index 75bb8f53..839fb399 100644 --- a/lib/sisu/v3/dal_syntax.rb +++ b/lib/sisu/v3/dal_syntax.rb @@ -285,8 +285,10 @@ module SiSU_DAL_Syntax w=w.gsub(@vz.markup_make_bold,"#{Mx[:fa_bold_o]}\\1#{Mx[:fa_bold_c]}") end else - w=if w =~ /(?:^!_|^#{Mx[:lv_o]}[7-9]:\S*?#{Mx[:lv_c]})\s+/; embolden(w) #bold paragraph/emphasize #may wish to remove think about 7{ 8{ conversion not satisfactory, as information is lost! - elsif w =~/^\/_\s+/; italicise(w) + w=if w =~ /(?:^!_|^#{Mx[:lv_o]}[7-9]:\S*?#{Mx[:lv_c]})\s+/ + embolden(w) #bold paragraph/emphasize #may wish to remove think about 7{ 8{ conversion not satisfactory, as information is lost! + elsif w =~/^\/_\s+/ + italicise(w) else w end end |