From 6684b4b1bd068d4ab3ba0bd3347ecb3c1eb9550f Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 25 Jan 2009 15:29:03 -0500 Subject: [PATCH] added section counters to dip3.css --- case-study-porting-chardet-to-python-3.html | 6 ++++-- dip3.css | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/case-study-porting-chardet-to-python-3.html b/case-study-porting-chardet-to-python-3.html index 1c0a3aa..5c4788f 100644 --- a/case-study-porting-chardet-to-python-3.html +++ b/case-study-porting-chardet-to-python-3.html @@ -8,12 +8,14 @@

Case study: porting chardet to Python 3

- +
diff --git a/dip3.css b/dip3.css index 6fcb32c..907be62 100644 --- a/dip3.css +++ b/dip3.css @@ -27,3 +27,5 @@ figure{display:block;text-align:center;margin:1.75em 0} figure img{display:block;margin:0 auto} section,article,footer{display:block} var{font-family:monospace;font-style:normal} +body{counter-reset:h2} +h2:before{counter-increment:h2;content:counter(h2) ". "}