|
From: <fri...@us...> - 2008-12-23 17:39:02
|
Revision: 9630
http://zaf.svn.sourceforge.net/zaf/?rev=9630&view=rev
Author: friedelwolff
Date: 2008-12-23 17:38:51 +0000 (Tue, 23 Dec 2008)
Log Message:
-----------
Make morphology output optional for Affix - this way we avoid an unnecesary space if no morphologyinformation was specified
Modified Paths:
--------------
trunk/dict/zu/hunspell/hunspell_format.py
Modified: trunk/dict/zu/hunspell/hunspell_format.py
===================================================================
--- trunk/dict/zu/hunspell/hunspell_format.py 2008-12-23 17:37:30 UTC (rev 9629)
+++ trunk/dict/zu/hunspell/hunspell_format.py 2008-12-23 17:38:51 UTC (rev 9630)
@@ -195,8 +195,11 @@
continuation_classes += options.circumfix
if continuation_classes:
affix += "/" + continuation_classes
- return "%s %s %s %s %s %s" % \
- (option, flagname, strip, affix, condition, self.morphology)
+ output = "%s %s %s %s %s" % \
+ (option, flagname, strip, affix, condition)
+ if self.morphology:
+ output += " " + self.morphology
+ return output
if __name__ == '__main__':
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|