Kicad manager: project_template.cpp: accepts lower and upper case HTML keywords (compatibility with libreoffice)

This commit is contained in:
jean-pierre charras 2012-10-15 19:55:04 +02:00
parent 26eab9c767
commit 2dc8c27ec2
1 changed files with 6 additions and 0 deletions

View File

@ -173,8 +173,14 @@ wxString* PROJECT_TEMPLATE::GetTitle(void)
while( input.IsOk() && !input.Eof() && !done )
{
wxString line = text.ReadLine();
start = line.Find( wxT( "<title>" ) );
if( start == wxNOT_FOUND )
start = line.Find( wxT( "<TITLE>" ) );
finish = line.Find( wxT( "</title>" ) );
if( finish == wxNOT_FOUND )
finish = line.Find( wxT( "</TITLE>" ) );
// find the opening tag
if( start != wxNOT_FOUND )