From 7bb1005de81ecbc2465bc075fd05e34fce892074 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 16 Mar 2009 20:42:38 +0100 Subject: [PATCH] docmaker: Don't ignore single-line code blocks. * src/tools/docmaker/content.py (DocBlock::_init__): Fix change from 2009-01-31. --- ChangeLog | 7 +++++++ src/tools/docmaker/content.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f484840ed..40385cbcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-03-16 Werner Lemberg + + docmaker: Don't ignore single-line code blocks. + + * src/tools/docmaker/content.py (DocBlock::_init__): Fix change from + 2009-01-31. + 2009-03-15 Steve Langasek Use __asm__ for declaring assembly instead of asm. diff --git a/src/tools/docmaker/content.py b/src/tools/docmaker/content.py index 0d76d19de..b398955b8 100644 --- a/src/tools/docmaker/content.py +++ b/src/tools/docmaker/content.py @@ -540,7 +540,7 @@ class DocBlock: while start < end and not string.strip( source[end] ): end = end - 1 - if start == end: + if start == end and not string.strip( source[start] ): self.code = [] else: self.code = source[start:end + 1]