Skip to content

Commit

Permalink
structured content now supports margins!!
Browse files Browse the repository at this point in the history
Still need to remove the outermost margin, to match the style of all the other yomi dicts
  • Loading branch information
Thermospore committed Sep 4, 2021
1 parent cf6720b commit 865587a
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 315 deletions.
3 changes: 2 additions & 1 deletion koj72yomi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ int main()
else if (tagAttributes == "style=\\\"margin-left:1em;\\\"")
{
// Encapsulates senses etc in entry (this is the juicy stuff rh, mwah~)
fnOpenReplace = "\", {\"tag\": \"div\", \"content\": [\"";
// These are all indented by 1em
fnOpenReplace = "\", {\"tag\": \"div\", \"style\": {\"marginLeft\": 1}, \"content\": [\"";
fnCloseReplace = "\"]}, \"";
}
else if (tagAttributes == "class=\\\"media\\\"")
Expand Down
Loading

0 comments on commit 865587a

Please sign in to comment.