2015-02-05 110 views
1

我想在單詞之間有更多空間。我不希望這是一個全球性的設置,但我想在例如像試圖顯示的文件格式例如如何在單詞之間添加額外的水平空白

-0.906638958281220  -0.657018016704405  -0.728731730614787\n 
-0.786972436949130  -0.657627328226054  -0.787627155672891\n 
-0.777310920528387  -0.784783890438497  -0.593932422372214\n 
0.995954003399787  -0.696941212792459  -0.096196347815229\n 
-0.900490089683701  -0.833132404483661  0.228899514508313\n 
-0.934597263489565  -0.763072730515099  0.417292195793138\n 
-0.802394301831597  -0.767756191733287  0.691687709627505\n 

獅身人面像「讓HTML」輸出將自動刪除多個空格時,一些地方使用它,它看起來像這樣

-0.906638958281220 -0.657018016704405 -0.728731730614787 
-0.786972436949130 -0.657627328226054 -0.787627155672891 
-0.777310920528387 -0.784783890438497 -0.593932422372214 
0.995954003399787 -0.696941212792459 -0.096196347815229 
-0.900490089683701 -0.833132404483661 0.228899514508313 
-0.934597263489565 -0.763072730515099 0.417292195793138 
-0.802394301831597 -0.767756191733287 0.691687709627505 

感謝

+2

只需使用一個文字代碼塊:http://sphinx-doc.org/rest.html#source-code – mzjn 2015-02-06 08:10:39

回答

2

使用::代碼塊就可以了

some text above 
:: 
LEAVE AN EMPTY LINE 
    -0.906638958281220  -0.657018016704405  -0.728731730614787 
    -0.786972436949130  -0.657627328226054  -0.787627155672891 
    -0.777310920528387  -0.784783890438497  -0.593932422372214 
    0.995954003399787  -0.696941212792459  -0.096196347815229 
    -0.900490089683701  -0.833132404483661  0.228899514508313 
    -0.934597263489565  -0.763072730515099  0.417292195793138 
    -0.802394301831597  -0.767756191733287  0.691687709627505 
LEAVE AN EMPTY LINE 
some text below 

結果會是這樣

some text above 
-0.906638958281220  -0.657018016704405  -0.728731730614787 
-0.786972436949130  -0.657627328226054  -0.787627155672891 
-0.777310920528387  -0.784783890438497  -0.593932422372214 
0.995954003399787  -0.696941212792459  -0.096196347815229 
-0.900490089683701  -0.833132404483661  0.228899514508313 
-0.934597263489565  -0.763072730515099  0.417292195793138 
-0.802394301831597  -0.767756191733287  0.691687709627505 
some text below