Skip to content

Commit

Permalink
Markdown line breaks #232
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Mar 12, 2024
1 parent b84688f commit 3e68596
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions include/mp/flat/constr_keeper.h
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ BasicConstraintKeeper::GetShortTypeName() const {
colon_pos = 0;
type_name_short_ = acc_opt.substr(
colon_pos, word_end-colon_pos);
for (auto& c: type_name_short_)
if (':'==c)
c = '_'; // Markdown
assert(type_name_short_.size());
}
return type_name_short_.c_str();
Expand Down
3 changes: 0 additions & 3 deletions support/modelexplore/modelexplore.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

import streamlit as st

from scripts.python.explorer import ModelExplorer
from scripts.python.modelreader import ReadExplorerModel
from scripts.python.matcher import MatchSubmodel

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

explorer = ModelExplorer()

# Cache the reading function
@st.cache_data
def ReadModel(uploader):
Expand Down
2 changes: 1 addition & 1 deletion support/modelexplore/scripts/python/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ def _matchRecords(self, cnt, keyw, keyNeed1=None):
if (""==keyw or keyw in pr) \
and (keyNeed1==None \
or (keyNeed1 in i and 1==i[keyNeed1])):
result = result + "\n\n" + pr ## Markdown
result = result + " \n" + pr ## Markdown: 2x spaces + EOL
return result

0 comments on commit 3e68596

Please sign in to comment.