зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6fcf190f3d
Коммит
4cd528a90b
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче