Commits

Martin von Löwis committed 62dcff2

Fix formatting bugs.

Comments (0)

Files changed (2)

 
 .. class:: Alias
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: source
-     - :attr: alt
-     - :attr: special
-     - :attr: path
+     - :attr:`alt`
+     - :attr:`draft`
+     - :attr:`special`
+     - :attr:`path`
+     - :attr:`source`
 
 .. class:: Any
    :noindex:
+
    - XXX child of YYY element
 
 .. class:: Cp
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: hex
-     - :attr: special
+     - :attr:`special`
+     - :attr:`hex`
 
 .. class:: Default
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: special
-     - :attr: references
-     - :attr: type
-     - :attr: alt
-     - :attr: choice
+     - :attr:`references`
+     - :attr:`draft`
+     - :attr:`special`
+     - :attr:`choice`
+     - :attr:`type`
+     - :attr:`alt`
 
 .. class:: Empty
    :noindex:
+
    - XXX child of YYY element
 
 .. class:: Fallback
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: references
-     - :attr: alt
+     - :attr:`references`
+     - :attr:`draft`
+     - :attr:`alt`
 
 .. class:: Generation
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: date
+     - :attr:`date`
 
 .. class:: Identity
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: script
-     - :attr: version
-     - :attr: special
-     - :attr: language
-     - :attr: territory
-     - :attr: variant
-     - :attr: generation
+     - :attr:`language`
+     - :attr:`special`
+     - :attr:`generation`
+     - :attr:`variant`
+     - :attr:`version`
+     - :attr:`territory`
+     - :attr:`script`
 
 .. class:: LDMLBase
    :noindex:
+
    - XXX child of YYY element
 
 .. class:: Language
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: type
-     - :attr: references
-     - :attr: alt
+     - :attr:`references`
+     - :attr:`type`
+     - :attr:`draft`
+     - :attr:`alt`
 
 .. class:: Languages
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: special
-     - :attr: language
-     - :attr: standard
-     - :attr: references
-     - :attr: validSublocales
+     - :attr:`references`
+     - :attr:`language`
+     - :attr:`standard`
+     - :attr:`special`
+     - :attr:`validSublocales`
+     - :attr:`draft`
 
 .. class:: LocaleDisplayNames
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: localeDisplayPattern
-     - :attr: languages
-     - :attr: types
-     - :attr: special
-     - :attr: scripts
-     - :attr: measurementSystemNames
-     - :attr: territories
-     - :attr: codePatterns
-     - :attr: keys
-     - :attr: transformNames
-     - :attr: variants
-     - :attr: draft
+     - :attr:`special`
+     - :attr:`measurementSystemNames`
+     - :attr:`types`
+     - :attr:`localeDisplayPattern`
+     - :attr:`variants`
+     - :attr:`scripts`
+     - :attr:`draft`
+     - :attr:`languages`
+     - :attr:`keys`
+     - :attr:`codePatterns`
+     - :attr:`transformNames`
+     - :attr:`territories`
 
 .. class:: LocaleDisplayPattern
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: reference
-     - :attr: special
-     - :attr: localeKeyTypePattern
-     - :attr: localeSeparator
-     - :attr: localePattern
-     - :attr: alt
+     - :attr:`draft`
+     - :attr:`localePattern`
+     - :attr:`special`
+     - :attr:`alt`
+     - :attr:`localeKeyTypePattern`
+     - :attr:`localeSeparator`
+     - :attr:`reference`
 
 .. class:: Numbers
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: currencyFormats
-     - :attr: defaultNumberingSystem
-     - :attr: special
-     - :attr: decimalFormats
-     - :attr: scientificFormats
-     - :attr: currencies
-     - :attr: symbols
-     - :attr: percentFormats
-     - :attr: otherNumberingSystems
+     - :attr:`decimalFormats`
+     - :attr:`currencies`
+     - :attr:`special`
+     - :attr:`symbols`
+     - :attr:`percentFormats`
+     - :attr:`defaultNumberingSystem`
+     - :attr:`scientificFormats`
+     - :attr:`otherNumberingSystems`
+     - :attr:`currencyFormats`
 
 .. class:: PCDATA
    :noindex:
+
    - XXX child of YYY element
 
 .. class:: PresumedEmpty
    :noindex:
+
    - XXX child of YYY element
 
 .. class:: Script
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: type
-     - :attr: references
-     - :attr: alt
+     - :attr:`references`
+     - :attr:`type`
+     - :attr:`draft`
+     - :attr:`alt`
 
 .. class:: Special
    :noindex:
+
    - XXX child of YYY element
 
 .. class:: Symbols
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: group
-     - :attr: nativeZeroDigit
-     - :attr: draft
-     - :attr: list
-     - :attr: standard
-     - :attr: currencyDecimal
-     - :attr: patternDigit
-     - :attr: decimal
-     - :attr: alt
-     - :attr: percentSign
-     - :attr: special
-     - :attr: infinity
-     - :attr: nan
-     - :attr: plusSign
-     - :attr: numberSystem
-     - :attr: minusSign
-     - :attr: perMille
-     - :attr: exponential
-     - :attr: validSubLocales
-     - :attr: references
-     - :attr: currencyGroup
+     - :attr:`decimal`
+     - :attr:`patternDigit`
+     - :attr:`group`
+     - :attr:`special`
+     - :attr:`numberSystem`
+     - :attr:`percentSign`
+     - :attr:`plusSign`
+     - :attr:`perMille`
+     - :attr:`currencyDecimal`
+     - :attr:`list`
+     - :attr:`references`
+     - :attr:`exponential`
+     - :attr:`draft`
+     - :attr:`standard`
+     - :attr:`minusSign`
+     - :attr:`infinity`
+     - :attr:`alt`
+     - :attr:`nativeZeroDigit`
+     - :attr:`validSubLocales`
+     - :attr:`currencyGroup`
+     - :attr:`nan`
 
 .. class:: Territories
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: special
-     - :attr: standard
-     - :attr: references
-     - :attr: territory
-     - :attr: validSublocales
+     - :attr:`references`
+     - :attr:`draft`
+     - :attr:`standard`
+     - :attr:`special`
+     - :attr:`territory`
+     - :attr:`validSublocales`
 
 .. class:: Territory
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: type
-     - :attr: references
-     - :attr: alt
+     - :attr:`references`
+     - :attr:`type`
+     - :attr:`draft`
+     - :attr:`alt`
 
 .. class:: Variant
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: draft
-     - :attr: type
-     - :attr: references
-     - :attr: alt
+     - :attr:`references`
+     - :attr:`type`
+     - :attr:`draft`
+     - :attr:`alt`
 
 .. class:: Version
    :noindex:
+
    - XXX child of YYY element
    - the class has the following attributes:
 
-     - :attr: cldrVersion
-     - :attr: number
+     - :attr:`cldrVersion`
+     - :attr:`number`
 from . import ldml
 
 def genclass(klasse):
-    print()
-    print('.. class:: ' + klasse.__name__)
-    print('   :noindex:')
+    print('\n.. class:: ' + klasse.__name__)
+    print('   :noindex:\n')
     print('   - XXX child of YYY element')
     if klasse._fields:
         print('   - the class has the following attributes:\n')
         for name, data in klasse._fields.items():
-            print('     - :attr: '+name)
+            print('     - :attr:`%s`' % name)
 
 
 print("""\