Permalink
Browse files

Change bb2wd so it preserves spaces inside of [b]s

Pygmentize outputs [b]foo [/b]bar instead of [b]foo[/b] bar, but bb2wd
strips the space.

closes #70
  • Loading branch information...
patricklucas committed Jan 18, 2012
1 parent 85a3b1a commit 19203dd8a84bdd918edd9c0be2bc3ce16876a2cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/bb2wd
View
@@ -33,7 +33,7 @@ s/\[i\]/[[span style="font-style:italic"]]/mg;
s/\[\/i\]/[[\/span]]/mg;
s/\[b\]/**/mg;
-s/\s*\[\/b\]/**/mg;
+s/(\s*)\[\/b\]/**$1/mg;
# Escape [ and ]
s/\[(\[*)/\@\@[$1\@\@/mg;

0 comments on commit 19203dd

Please sign in to comment.