Skip to content

Commit

Permalink
Allow another intro line in file checking
Browse files Browse the repository at this point in the history
  • Loading branch information
RobH123 committed Feb 7, 2018
1 parent bdee243 commit 154d5fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ZefaniaXMLBible.py
Expand Up @@ -64,10 +64,10 @@

from gettext import gettext as _

LastModifiedDate = '2018-01-18' # by RJH
LastModifiedDate = '2018-02-08' # by RJH
ShortProgName = "ZefaniaBible"
ProgName = "Zefania XML Bible format handler"
ProgVersion = '0.35'
ProgVersion = '0.36'
ProgNameVersion = '{} v{}'.format( ShortProgName, ProgVersion )
ProgNameVersionDate = '{} {} {}'.format( ProgNameVersion, _("last modified"), LastModifiedDate )

Expand Down Expand Up @@ -164,7 +164,9 @@ def ZefaniaXMLBibleFileCheck( givenFolderName, strictCheck=True, autoLoad=False,
and not firstLines[1].startswith( '<!--Nice Viewer' ) \
and not firstLines[1].startswith( '<!--Builded with' ) \
and not firstLines[1].startswith( '<!--For Programmers' ) \
and not firstLines[1].startswith( '<!--Visit the' ) \
and not firstLines[1].startswith( '<!--http://zefania' ):
if BibleOrgSysGlobals.debugFlag: print( "ZefaniaXMLBibleFileCheck rejecting1 second line: {}".format( firstLines[1] ) )
continue
lastFilenameFound = thisFilename
numFound += 1
Expand Down Expand Up @@ -211,7 +213,9 @@ def ZefaniaXMLBibleFileCheck( givenFolderName, strictCheck=True, autoLoad=False,
and not firstLines[1].startswith( '<!--Nice Viewer' ) \
and not firstLines[1].startswith( '<!--Builded with' ) \
and not firstLines[1].startswith( '<!--For Programmers' ) \
and not firstLines[1].startswith( '<!--Visit the' ) \
and not firstLines[1].startswith( '<!--http://zefania' ):
if BibleOrgSysGlobals.debugFlag: print( "ZefaniaXMLBibleFileCheck rejecting1 second line: {}".format( firstLines[1] ) )
continue
foundProjects.append( (tryFolderName, thisFilename,) )
lastFilenameFound = thisFilename
Expand Down

0 comments on commit 154d5fa

Please sign in to comment.