mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Improve linebreak / paragraph behavior.
This commit is contained in:
parent
a7ac8a04e0
commit
24d01d39c6
4 changed files with 13 additions and 6 deletions
|
@ -21,6 +21,8 @@ class DifferentialMarkupEngineFactory {
|
|||
public function newDifferentialCommentMarkupEngine() {
|
||||
$engine = new PhutilRemarkupEngine();
|
||||
|
||||
$engine->setConfig('preserve-linebreaks', true);
|
||||
|
||||
$rules = array();
|
||||
$rules[] = new PhutilRemarkupRuleEscapeRemarkup();
|
||||
$rules[] = new PhutilRemarkupRuleHyperlink();
|
||||
|
|
|
@ -156,7 +156,11 @@ final class DifferentialRevisionCommentView extends AphrontView {
|
|||
$inline_render[] =
|
||||
'<tr>'.
|
||||
'<td class="inline-line-number">'.$lines.'</td>'.
|
||||
'<td>'.$inline_content.'</td>'.
|
||||
'<td>'.
|
||||
'<div class="phabricator-remarkup">'.
|
||||
$inline_content.
|
||||
'</div>'.
|
||||
'</td>'.
|
||||
'</tr>';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,10 +42,7 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.differential-comment-core .phabricator-remarkup p {
|
||||
margin: 0.35em 0;
|
||||
}
|
||||
|
||||
.differential-comment-content .phabricator-remarkup code,
|
||||
.differential-comment-core .phabricator-remarkup code {
|
||||
width: 88ex;
|
||||
width: 81ch;
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
}
|
||||
|
||||
.phabricator-remarkup p {
|
||||
margin: 0 0 .75em;
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.phabricator-remarkup p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.phabricator-remarkup code {
|
||||
|
|
Loading…
Reference in a new issue