為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

autoExportHTML adding bogus characters in exported html

  • 4 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 cor-el

more options

Hi,

I recently upgraded from FF 3.x to 6. Everything's working pretty good, but one problem I see is that the exported HTML (generated when I exit FF with the above config knob enabled) has some bookmarks preceeded/appended by some misc characters, like an 'open parenthesis' or a paren + a dash on a line by themselves. Any clues?

Hi, I recently upgraded from FF 3.x to 6. Everything's working pretty good, but one problem I see is that the exported HTML (generated when I exit FF with the above config knob enabled) has some bookmarks preceeded/appended by some misc characters, like an 'open parenthesis' or a paren + a dash on a line by themselves. Any clues?

所有回覆 (4)

more options

I also noticed now that the html page has lost all hierarchy - used to be that folders in folders would have indentation - now everything is left justified. Very annoying....

more options

Are that normal bookmarks or JavaScript bookmarklet or data URIs?


You can fix the indentation with some CSS code.

<style>
dl > dt > dl {
 display: block;
 -moz-margin-start: 40px;
}
</style>

由 cor-el 於 修改

more options

Hi Cor-el, thanks for the reply. These are just normal bookmarks, nothing fancy/special about any of them.

The thing is, I basically use my exported bookmarks page as my home page, so while the CSS fixes it, it's overwritten the next time I close down FF. Now I'd be stuck post-processing this file manually or with scripts every time I shut down the app. I guess I'm a bit baffled as to why these changes were implemented in the first place, I'm failing to see the benefit/reasoning behind them.....

more options

Firefox 4 and later treat the DT element differently and that causes a quirk CSS rule (dl > dl) not to get applied.

  • resource://gre-resources/quirk.css line 220

Make sure that the file is opened as UTF-8.

  • View > Character Encoding
  • Firefox > Web Developer > Character Encoding

You can use this bookmarklet to add the style sheet.


javascript:(function(){var doc=document,css=doc.createElement('LINK');css.rel='stylesheet';css.type='text/css';css.href='data:text/css,'+'dl>dt>dl{display:block;-moz-margin-start:40px;}';doc.documentElement.childNodes[0].appendChild(css);})();

由 cor-el 於 修改