Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Mastodon
Commits
f690320f
Commit
f690320f
authored
7 years ago
by
Rachel H
Committed by
Eugen
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Keep newlines in xml (#1397)
parent
553170b7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/components/components/status_content.jsx
+1
-1
1 addition, 1 deletion
...sets/javascripts/components/components/status_content.jsx
app/lib/formatter.rb
+0
-1
0 additions, 1 deletion
app/lib/formatter.rb
with
1 addition
and
2 deletions
app/assets/javascripts/components/components/status_content.jsx
+
1
−
1
View file @
f690320f
...
...
@@ -91,7 +91,7 @@ const StatusContent = React.createClass({
const
{
status
}
=
this
.
props
;
const
{
hidden
}
=
this
.
state
;
const
content
=
{
__html
:
emojify
(
status
.
get
(
'
content
'
))
};
const
content
=
{
__html
:
emojify
(
status
.
get
(
'
content
'
))
.
replace
(
/
\n
/g
,
''
)
};
const
spoilerContent
=
{
__html
:
emojify
(
escapeTextContentForBrowser
(
status
.
get
(
'
spoiler_text
'
,
''
)))
};
const
directionStyle
=
{
direction
:
'
ltr
'
};
...
...
This diff is collapsed.
Click to expand it.
app/lib/formatter.rb
+
0
−
1
View file @
f690320f
...
...
@@ -15,7 +15,6 @@ class Formatter
html
=
status
.
text
html
=
encode
(
html
)
html
=
simple_format
(
html
,
{},
sanitize:
false
)
html
=
html
.
gsub
(
/\n/
,
''
)
html
=
link_urls
(
html
)
html
=
link_mentions
(
html
,
status
.
mentions
)
html
=
link_hashtags
(
html
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment