Skip to content

Commit 3e68596

Browse files
committed
Markdown line breaks #232
1 parent b84688f commit 3e68596

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/mp/flat/constr_keeper.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ BasicConstraintKeeper::GetShortTypeName() const {
551551
colon_pos = 0;
552552
type_name_short_ = acc_opt.substr(
553553
colon_pos, word_end-colon_pos);
554+
for (auto& c: type_name_short_)
555+
if (':'==c)
556+
c = '_'; // Markdown
554557
assert(type_name_short_.size());
555558
}
556559
return type_name_short_.c_str();

support/modelexplore/modelexplore.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
import streamlit as st
33

4-
from scripts.python.explorer import ModelExplorer
54
from scripts.python.modelreader import ReadExplorerModel
65
from scripts.python.matcher import MatchSubmodel
76

@@ -18,8 +17,6 @@
1817
fwd = right_column.checkbox('Add descendants', disabled=True)
1918
bwd = right_column.checkbox('Add ancestors', disabled=True)
2019

21-
explorer = ModelExplorer()
22-
2320
# Cache the reading function
2421
@st.cache_data
2522
def ReadModel(uploader):

support/modelexplore/scripts/python/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@ def _matchRecords(self, cnt, keyw, keyNeed1=None):
111111
if (""==keyw or keyw in pr) \
112112
and (keyNeed1==None \
113113
or (keyNeed1 in i and 1==i[keyNeed1])):
114-
result = result + "\n\n" + pr ## Markdown
114+
result = result + " \n" + pr ## Markdown: 2x spaces + EOL
115115
return result

0 commit comments

Comments
 (0)