Skip to content

Commit

Permalink
just justify multiline strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Nov 6, 2024
1 parent a006c27 commit e9d8dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mathics_django/web/media/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -764,5 +764,5 @@ div.filelist table a:hover {

p.string {
color: #a61515;
text-align: justify;
text-align: center;
}
3 changes: 3 additions & 0 deletions mathics_django/web/media/js/mathics.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ function createLine(value) {
const lines = container.innerText.split('\n');
const p = document.createElement('p');
p.className = 'string';
if(lines.length>1){
p.style.textAlign = 'justify';
}

for (let i = 0; i < lines.length; i++) {
newline = prepareText(lines[i]);
Expand Down

0 comments on commit e9d8dba

Please sign in to comment.