Ticket #1325: bib-oo-style-patch.diff

File bib-oo-style-patch.diff, 575 bytes (added by strank, 7 years ago)

Simple patch to use a non-default style for bibliographies

  • OpenOffice/OpenOffice.py

     
    474474                                oRange.setString("") 
    475475                                oRange.goRight(1, False) 
    476476                                oRange.goRight(nLen - 1 - removeLastNewLine, True) 
     477                                # do not use the Default style, 
     478                                # use 'Bibliography 1' which is also used by OOo for bibs 
     479                                # (probably should be user configurable!) 
     480                                oRange.setPropertyValue("ParaStyleName", "Bibliography 1") 
    477481                else: 
    478482                        oRange.setString(string) 
    479483