Coder Social home page Coder Social logo

Comments (7)

rbeezer avatar rbeezer commented on September 3, 2024

Yep, I can control whitespace pretty well now. I'll get 'er done soon.

from pretext.

rbeezer avatar rbeezer commented on September 3, 2024

It was easy to do this, since I mostly introduced the spaces with xsl:text
/xsl:text, ie they were intentional.

Back on develop now, and it seems the majority of the headings are not getting
the spaces they need. Is this implemented yet?

On 08/06/2014 04:35 PM, Michael DuBois wrote:

I'm doing the spacing for environment and section headings in the CSS, as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser doesn't
interpret it as a single space.

There are a couple of different ways to do this:

Proof1.2.3Loch Ness Monster Proof

Proof</span

1.2.3</span
Loch Ness Monster Proof

Proof1.2.3Loch Ness Monster Proof

There also might be some XSLT specific ways to handle whitespace. This looks
promising
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template.


Reply to this email directly or view it on GitHub
#12.

from pretext.

davidfarmer avatar davidfarmer commented on September 3, 2024

Not implemented yet: it is issue #26

On Fri, 8 Aug 2014, Rob Beezer wrote:

It was easy to do this, since I mostly introduced the spaces with xsl:text
/xsl:text, ie they were intentional.

Back on develop now, and it seems the majority of the headings are not getting
the spaces they need. Is this implemented yet?

On 08/06/2014 04:35 PM, Michael DuBois wrote:

I'm doing the spacing for environment and section headings in the CSS, as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser doesn't
interpret it as a single space.

There are a couple of different ways to do this:

Proof1.2.3Loch Ness Monster Proof

Proof</span

1.2.3</span
Loch Ness Monster Proof

Proof1.2.3Loch Ness Monster Proof

There also might be some XSLT specific ways to handle whitespace. This looks
promising
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template.


Reply to this email directly or view it on GitHub
#12.


Reply to this email directly or view it onGitHub.[211500__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzE4MDQ5OSwiZGF0YSI6eyJpZCI6MzkwMjcwODl9fQ==--7cc560
1aa78074cf569f119d32ec48d479dffd84.gif]

from pretext.

mxdubois avatar mxdubois commented on September 3, 2024

Actually, this issue was about section/environment headings, not the
headings in the ToC. So it's related to
BooksHTML/mathbook-assets#25.

I'm pretty sure the CSS on develop (and math-fest) is adding the spaces
correctly. I filed this issue here because some environment headings were
getting an extra space from the HTML between the last <span> token and
the heading's final period. The "Example" environments at this link
demonstrate that behavior:

http://mathbook.pugetsound.edu/temp/mathfest/section-sets-and-equivalence-relations.html

When I manually remove all the linebreaks between the <span>s, the
opening <h5> tag, and the closing </h5> tag, the problem is fixed.

On Sat, Aug 9, 2014 at 4:14 AM, davidfarmer [email protected]
wrote:

Not implemented yet: it is issue #26

On Fri, 8 Aug 2014, Rob Beezer wrote:

It was easy to do this, since I mostly introduced the spaces with
xsl:text
/xsl:text, ie they were intentional.

Back on develop now, and it seems the majority of the headings are not
getting
the spaces they need. Is this implemented yet?

On 08/06/2014 04:35 PM, Michael DuBois wrote:

I'm doing the spacing for environment and section headings in the CSS,
as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was
broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser
doesn't
interpret it as a single space.

There are a couple of different ways to do this:

Proof1.2.3Loch Ness Monster
Proof

Proof</span

1.2.3</span
Loch Ness Monster Proof

Proof1.2.3Loch Ness Monster Proof

There also might be some XSLT specific ways to handle whitespace. This
looks
promising
<
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template
.


Reply to this email directly or view it on GitHub
#12.


Reply to this email directly or view it
onGitHub.[211500__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzE4MDQ5OSwiZGF0YSI6eyJpZCI6MzkwMjcwODl9fQ==--7cc560
1aa78074cf569f119d32ec48d479dffd84.gif]


Reply to this email directly or view it on GitHub
#12 (comment).

from pretext.

rbeezer avatar rbeezer commented on September 3, 2024

OK, I am aware of this one.

I am having no luck getting the

's to output without line
breaks. It feels like a bug. If I change the h5 to then it outputs
without that trailing line break inside.

I'm going to go for a MWE and either discover the cause in the process or having
to post to SO (or similar).

I am getting no spaces between parts of environment/section headings now that
I have removed all my intentional spaces. I'll get an example up soon if
necessary, let me know.

Rob

On 08/09/2014 02:57 PM, Michael DuBois wrote:

Actually, this issue was about section/environment headings, not the
headings in the ToC. So it's related to
BooksHTML/mathbook-assets#25.

I'm pretty sure the CSS on develop (and math-fest) is adding the spaces
correctly. I filed this issue here because some environment headings were
getting an extra space from the HTML between the last <span> token and
the heading's final period. The "Example" environments at this link
demonstrate that behavior:

http://mathbook.pugetsound.edu/temp/mathfest/section-sets-and-equivalence-relations.html

When I manually remove all the linebreaks between the <span>s, the
opening <h5> tag, and the closing </h5> tag, the problem is fixed.

On Sat, Aug 9, 2014 at 4:14 AM, davidfarmer [email protected]
wrote:

Not implemented yet: it is issue #26

On Fri, 8 Aug 2014, Rob Beezer wrote:

It was easy to do this, since I mostly introduced the spaces with
xsl:text
/xsl:text, ie they were intentional.

Back on develop now, and it seems the majority of the headings are not
getting
the spaces they need. Is this implemented yet?

On 08/06/2014 04:35 PM, Michael DuBois wrote:

I'm doing the spacing for environment and section headings in the CSS,
as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was
broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser
doesn't
interpret it as a single space.

There are a couple of different ways to do this:

Proof1.2.3Loch Ness Monster
Proof

Proof</span

1.2.3</span
Loch Ness Monster Proof

Proof1.2.3Loch Ness Monster Proof

There also might be some XSLT specific ways to handle whitespace. This
looks
promising
<
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template
.


Reply to this email directly or view it on GitHub
#12.


Reply to this email directly or view it

onGitHub.[211500__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzE4MDQ5OSwiZGF0YSI6eyJpZCI6MzkwMjcwODl9fQ==--7cc560

1aa78074cf569f119d32ec48d479dffd84.gif]


Reply to this email directly or view it on GitHub
#12 (comment).


Reply to this email directly or view it on GitHub
#12 (comment).

from pretext.

mxdubois avatar mxdubois commented on September 3, 2024

Hmm, well I would just suggest trying the things I listed in the original post. The SO question I linked at the end might have the cleanest or most "correct" way to do it, though.

For what it's worth, proofs do not have this problem.

If you feel ambitious, it would be a good idea to isolate the heading XSLT into a single template (or one for environments and one for sections), now that we're standardizing them.

from pretext.

rbeezer avatar rbeezer commented on September 3, 2024

This space (and many others) has gone away as a result of cae344d.

However, it remains to get reasonably easy-to-read indented output instead.

from pretext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.