Permalink
Browse files

ansi2html.sh: fix the default background to be white, not gray

* scripts/ansi2html.sh: Fix a bug introduced when adding
palettes in 3f1efab
  • Loading branch information...
1 parent 8469b68 commit a6b3b05bde8569637ae39f5b39342191c20d4059 @pixelb committed Jul 12, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 scripts/ansi2html.sh
View
@@ -31,11 +31,11 @@
# Handle codes with combined attributes and color.
# Handle isolated <bold> attributes with css.
# Strip more terminal control codes.
-# V0.11, 06 May 2011
+# V0.12, 12 Jul 2011
# http://github.com/pixelb/scripts/commits/master/scripts/ansi2html.sh
if [ "$1" = "--version" ]; then
- echo "0.11" && exit
+ echo "0.12" && exit
fi
if [ "$1" = "--help" ]; then
@@ -137,7 +137,7 @@ done
echo -n '
.f9 { color: '`[ "$dark_bg" ] && echo "#$P7;" || echo "#$P0;"`' }
-.b9 { background-color: #'`[ "$dark_bg" ] && echo $P0 || echo $P7`'; }
+.b9 { background-color: #'`[ "$dark_bg" ] && echo $P0 || echo $P15`'; }
.f9 > .bold,.bold > .f9, body.f9 > pre > .bold {
/* Bold is heavy black on white, or bright white
depending on the default background */

0 comments on commit a6b3b05

Please sign in to comment.