How to force unwrap Code Macro

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

These instructions on customizing Confluence are not officially supported, per the Atlassian Support Offerings. This has been tested in Confluence 4.3.3.

目的

If the text inserted into a Code Macro in Confluence is too long, Confluence will wrap it to a new line.

ソリューション

  1.  Navigate to the Stylesheet screen in Confluence Admin (at Browse >> Confluence Admin >> Stylesheet)
  2. Add the following CSS:

    code { /* forces the text not to wrap */  
        white-space: nowrap !important;  
    }
  3. Click Save
  4. Navigate to the page containing the wrapped code block. It should now be unwrapped.

最終更新日 2016 年 4 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.