Commit 2dc8c27e authored by jean-pierre charras's avatar jean-pierre charras

Kicad manager: project_template.cpp: accepts lower and upper case HTML...

Kicad manager: project_template.cpp: accepts  lower and upper case HTML keywords (compatibility with libreoffice)
parent 26eab9c7
...@@ -173,8 +173,14 @@ wxString* PROJECT_TEMPLATE::GetTitle(void) ...@@ -173,8 +173,14 @@ wxString* PROJECT_TEMPLATE::GetTitle(void)
while( input.IsOk() && !input.Eof() && !done ) while( input.IsOk() && !input.Eof() && !done )
{ {
wxString line = text.ReadLine(); wxString line = text.ReadLine();
start = line.Find( wxT( "<title>" ) ); start = line.Find( wxT( "<title>" ) );
if( start == wxNOT_FOUND )
start = line.Find( wxT( "<TITLE>" ) );
finish = line.Find( wxT( "</title>" ) ); finish = line.Find( wxT( "</title>" ) );
if( finish == wxNOT_FOUND )
finish = line.Find( wxT( "</TITLE>" ) );
// find the opening tag // find the opening tag
if( start != wxNOT_FOUND ) if( start != wxNOT_FOUND )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment