summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-03-09 10:19:35 +0000
committergrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-03-09 10:19:35 +0000
commit26b1d538fc040ca934b9f189dd33667518dc08b5 (patch)
tree83084562da30f756a9736769659664d33b416d17
parent933df8c51f865e92068acd8335cd16172cb03ca8 (diff)
downloaddocutils-26b1d538fc040ca934b9f189dd33667518dc08b5.tar.gz
safe check for startswith "."
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7628 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--docutils/writers/manpage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/writers/manpage.py b/docutils/writers/manpage.py
index 7af7cbc5f..3ea996116 100644
--- a/docutils/writers/manpage.py
+++ b/docutils/writers/manpage.py
@@ -290,7 +290,7 @@ class Translator(nodes.NodeVisitor):
# unicode
text = self.deunicode(text)
# prevent interpretation of "." at line start
- if text[0] == '.':
+ if text.startswith('.'):
text = '\\&' + text
if self._in_literal:
text = text.replace('\n.', '\n\\&.')