summaryrefslogtreecommitdiff
path: root/helpcontent2/to-wiki/getalltitles.py
diff options
context:
space:
mode:
authorMuthu Subramanian K <sumuthu@novell.com>2010-11-08 22:20:06 +0530
committerMuthu Subramanian K <sumuthu@novell.com>2010-11-08 22:20:06 +0530
commitb9dbeaf27ea4d8b61fcca464ab9459f2283212d2 (patch)
treeeb465b9dc845ad2169ef52c063e05bbca607b589 /helpcontent2/to-wiki/getalltitles.py
parentf224ef451ecceafe7c47e3469cd0f8a4b6505c78 (diff)
Reverting while() to if() to replace text.
Since text.replace itself would do a replace-all.
Diffstat (limited to 'helpcontent2/to-wiki/getalltitles.py')
-rwxr-xr-xhelpcontent2/to-wiki/getalltitles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpcontent2/to-wiki/getalltitles.py b/helpcontent2/to-wiki/getalltitles.py
index 793465f2fc..97e2649ee8 100755
--- a/helpcontent2/to-wiki/getalltitles.py
+++ b/helpcontent2/to-wiki/getalltitles.py
@@ -59,7 +59,7 @@ def get_module(text):
def replace_text(text):
for i in replace_text_list:
- while text.find(i[0]) >= 0:
+ if text.find(i[0]) >= 0:
text = text.replace(i[0],i[1])
return text