Output basic entities such as   during 'Save As' of HTML documents (there is another option/flag to output more entities such as accented letters if needed), r=adamlock, sr=heikki, a=asa

This commit is contained in:
rbs%maths.uq.edu.au 2003-05-23 06:18:11 +00:00
Родитель 6fcf190f3d
Коммит 4cd528a90b
3 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -424,7 +424,10 @@ function onLoad() {
encodingFlags |= nsIWBP.ENCODE_FLAGS_ABSOLUTE_LINKS;
encodingFlags |= nsIWBP.ENCODE_FLAGS_NOFRAMES_CONTENT;
}
else {
encodingFlags |= nsIWBP.ENCODE_FLAGS_ENCODE_BASIC_ENTITIES;
}
const kWrapColumn = 80;
webBrowserPersist.saveDocument(persistArgs.source, targetFile, filesFolder,

Просмотреть файл

@ -111,7 +111,7 @@ function p3pSummarySavePage()
persistor.saveDocument(getDocument(), fp.file, null, "text/html",
kIPersist.ENCODE_FLAGS_FORMATTED |
kIPersist.ENCODE_FLAGS_ENCODE_ENTITIES, 0);
kIPersist.ENCODE_FLAGS_ENCODE_BASIC_ENTITIES, 0);
}
}
catch (ex)

Просмотреть файл

@ -385,7 +385,10 @@ function foundHeaderInfo(aSniffer, aData)
encodingFlags |= nsIWBP.ENCODE_FLAGS_ABSOLUTE_LINKS;
encodingFlags |= nsIWBP.ENCODE_FLAGS_NOFRAMES_CONTENT;
}
else {
encodingFlags |= nsIWBP.ENCODE_FLAGS_ENCODE_BASIC_ENTITIES;
}
const kWrapColumn = 80;
dl.init(aSniffer.uri, persistArgs.target, null, null, null, persist);
persist.saveDocument(persistArgs.source, persistArgs.target, filesFolder,