Comments (6)
Another option would be to add classes to the sections and use the white-space
property in the CSS. I'm mainly concerned about preserving line-breaks, so white-space: pre-line;
would fit my requirements and be the least intrusive option.
from mdtranslator.
That looks good. Another CSS property I had not known of. I'll work it
in. Create an issue for version 1.3?
On Fri, Jul 10, 2015 at 8:42 AM, Josh Bradley [email protected]
wrote:
Another option would be to add classes to the sections and use the
white-space https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
property in the CSS. I'm mainly concerned about preserving line-breaks, so white-space:
pre-line; would fit my requirements and be the least intrusive option.—
Reply to this email directly or view it on GitHub
#37 (comment).
Stan Smith
Alaska Science Center
Data Manager
907-786-7072 Office
907-223-8752 Mobile
[email protected]
from mdtranslator.
I created a new branch and pull request, #38, with my solution. I only added the new .pre-line class to abstract section. Note that spaces and tabs will still collapse when using white-space: pre-line;
.
Also, note the change to the ruby code. I refactored to use !tag instead of !text to prevent the extra newline. See jimweirich/builder#45. This will also need to be taken into consideration whenever .pre-line is applied.
from mdtranslator.
The white-space: pre-line; works for me.
Not sure what the advantage of moving the section tag into a tag! method
buys. It does create better formatted html than using text!, but there are
many places we still need to use the text! method. Any time we need to do
processing inside a tag or have multiple items to write within a tag, I
think we will still need the text! method. I think I prefer consistency
rather than cleaning up just some of the html. That said, the html is
already inconsistent.
On Fri, Jul 10, 2015 at 12:05 PM, Josh Bradley [email protected]
wrote:
I created a new branch and pull request, #38
#38, with my solution. I only
added the new .pre-line class to abstract section. Note that spaces and
tabs will still collapse when using white-space: pre-line;.Also, note the change to the ruby code. I refactored to use !tag instead
of !text to prevent the extra newline. See jimweirich/builder#45
jimweirich/builder#45. This will also need to
be taken into consideration whenever .pre-line is applied.—
Reply to this email directly or view it on GitHub
#37 (comment).
Stan Smith
Alaska Science Center
Data Manager
907-786-7072 Office
907-223-8752 Mobile
[email protected]
from mdtranslator.
The problem with using text!
with .pre-line
is the extra new-line that's added. Normally, this would be collapsed when rendered in the browser, but not when white-space: pre-line;
is applied.
from mdtranslator.
Fixed by adae8c8
from mdtranslator.
Related Issues (20)
- Fix and Update Unit Tests
- Export to an editable document format
- TestReaderMdJsonMetadata#test_metadata_schema:: mdTranslator/test/readers/mdJson/tc_mdjson_metadata.rb:28
- TestWriterMdJsonMetadata#test_schema_metadata:: mdTranslator/test/writers/mdJson/tc_mdjson_metadata.rb:59
- TestWriterMdJsonDataQuality#test_schema_dataQuality:: mdTranslator/test/writers/mdJson/tc_mdjson_dataQuality.rb:22
- TestWriterMdJsonMetadata#test_complete_metadata:: mdTranslator/test/writers/mdJson/tc_mdjson_metadata.rb:71:in
- TestWriter19115PartyIdentifier#test_organization_party_identifier:: mdTranslator/test/writers/iso19115-1/tc_19115_1_partyIdentifier.rb:53
- MiniTest -> Minitest
- Update iso19115 v1 to v3
- HTML Writer Error when Scope Descriptions is Empty
- Support External Contact Identifiers - sbJson
- sbJson writer support for external contact identifiers HOT 7
- sbJson reader support for external contact identifiers
- HTML writer support for external contact identifiers
- Bugfix Refereence Typo
- Fix and Complete Range Element Description
- Simple HTML writer support for external contact identifiers
- Evaluate Unit Test for Version
- sbJSON translation always includes "Data" as a browseCategory
- CSDGM Writer - Attribute Domain Value missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdtranslator.