Skip to content

Commit

Permalink
Now the article's numbered list rendered correctly :uvdesk#215
Browse files Browse the repository at this point in the history
  • Loading branch information
antuchaudharyqlo246 committed Jul 10, 2023
1 parent 65f059e commit 21b8690
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Controller/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@ public function viewArticle(Request $request)
if (empty($article)) {
$this->noResultFound();
}
$stringReplace = str_replace("<ol>","<ul>",$article->getContent());
$stringReplace = str_replace("</ol>","</ul>",$stringReplace);

$stringReplace = str_replace("<ol>","<ol>",$article->getContent());
$stringReplace = str_replace("</ol>","</ol>",$stringReplace);

$article->setContent($stringReplace);
$article->setViewed((int) $article->getViewed() + 1);
Expand Down
4 changes: 2 additions & 2 deletions Resources/public/css/knowledgebase.css
Original file line number Diff line number Diff line change
Expand Up @@ -2092,10 +2092,10 @@ p {
margin-right: 10px;
}
.uv-paper-article {
padding-top: 60px;
padding-top: 20px;
padding-bottom: 40px;
border-bottom: solid 1px #D3D3D3;
font-size: 0;
font-size: 18px;
}
.uv-paper-article .uv-paper-section {
width: 75%;
Expand Down

0 comments on commit 21b8690

Please sign in to comment.