src/eric7/QScintilla/Exporters/ExporterHTML.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9487
78cb053591c9
child 9653
e67609152c5e
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
671 """ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional""" 671 """ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional"""
672 """.dtd">\n""" 672 """.dtd">\n"""
673 """<html xmlns="http://www.w3.org/1999/xhtml">\n""" 673 """<html xmlns="http://www.w3.org/1999/xhtml">\n"""
674 ) 674 )
675 elif htmlFormat == "html5": 675 elif htmlFormat == "html5":
676 head = """<!DOCTYPE html>\n""" """<html lang="EN">\n""" 676 head = """<!DOCTYPE html>\n<html lang="EN">\n"""
677 else: 677 else:
678 head = '<html lang="EN">\n' 678 head = '<html lang="EN">\n'
679 head += """<head>\n""" 679 head += """<head>\n"""
680 if Preferences.getEditorExporter("HTML/FullPathAsTitle"): 680 if Preferences.getEditorExporter("HTML/FullPathAsTitle"):
681 head += """<title>{0}</title>\n""".format(self.editor.getFileName()) 681 head += """<title>{0}</title>\n""".format(self.editor.getFileName())

eric ide

mercurial