summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-04-22 00:13:56 +0200
committerGitHub <noreply@github.com>2020-04-21 23:13:56 +0100
commit7e20f1cb5b3ef494676f3629e4980c8cdd64525b (patch)
tree7dc0f5b4975ff135ce074ddca9e959e13266df33 /modules
parent49f8b20570a4a6e7d49f00ee91453dc8ef84f4b1 (diff)
downloadgitea-7e20f1cb5b3ef494676f3629e4980c8cdd64525b.tar.gz
gitea-7e20f1cb5b3ef494676f3629e4980c8cdd64525b.zip
enable ENABLE_HARD_LINE_BREAK by default (#11162)
enable ENABLE_HARD_LINE_BREAK by default This matches GitHub's rendering. Fix #11155
Diffstat (limited to 'modules')
-rw-r--r--modules/markup/markdown/markdown_test.go4
-rw-r--r--modules/setting/setting.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go
index b2cf529964..160a344bda 100644
--- a/modules/markup/markdown/markdown_test.go
+++ b/modules/markup/markdown/markdown_test.go
@@ -133,9 +133,9 @@ func testAnswers(baseURLContent, baseURLImages string) []string {
`,
`<p><a href="http://www.excelsiorjet.com/" rel="nofollow">Excelsior JET</a> allows you to create native executables for Windows, Linux and Mac OS X.</p>
<ol>
-<li><a href="https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline#packaging-for-the-desktop" rel="nofollow">Package your libGDX application</a>
+<li><a href="https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline#packaging-for-the-desktop" rel="nofollow">Package your libGDX application</a><br/>
<a href="` + baseURLImages + `/images/1.png" rel="nofollow"><img src="` + baseURLImages + `/images/1.png" title="1.png" alt="images/1.png"/></a></li>
-<li>Perform a test run by hitting the Run! button.
+<li>Perform a test run by hitting the Run! button.<br/>
<a href="` + baseURLImages + `/images/2.png" rel="nofollow"><img src="` + baseURLImages + `/images/2.png" title="2.png" alt="images/2.png"/></a></li>
</ol>
<h2 id="user-content-custom-id">More tests</h2>
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 74f6da38d1..a18b47a7e9 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -241,7 +241,7 @@ var (
CustomURLSchemes []string `ini:"CUSTOM_URL_SCHEMES"`
FileExtensions []string
}{
- EnableHardLineBreak: false,
+ EnableHardLineBreak: true,
FileExtensions: strings.Split(".md,.markdown,.mdown,.mkd", ","),
}