Skip to content

colorize: "Melt" also over space characters#45

Merged
wbsoft merged 2 commits into
masterfrom
merge-html-spans
Sep 25, 2015
Merged

colorize: "Melt" also over space characters#45
wbsoft merged 2 commits into
masterfrom
merge-html-spans

Conversation

@uliska

@uliska uliska commented Jul 23, 2015

Copy link
Copy Markdown
Collaborator

This commit improves the melt_mapped_tokens function so that
adjacent tokens are also melted when they are separated by spaces, e.g.

{
  c d e
}

will only return one <span class="lilypond-pitch"> item instead of three.

This commit improves the `melt_mapped_tokens` function so that
adjacent tokens are also melted when they are separated by spaces, e.g.
{
  c d e
}
will only return one <span class="lilypond-pitch"> instead of three.
@wbsoft

wbsoft commented Sep 25, 2015

Copy link
Copy Markdown
Collaborator

I think this is nice, but shouldn't t == ' ' be t.isspace() ?

@uliska

uliska commented Sep 25, 2015

Copy link
Copy Markdown
Collaborator Author

Thanks for the hint, I wasn't aware of this function :-(

@wbsoft

wbsoft commented Sep 25, 2015

Copy link
Copy Markdown
Collaborator

that would allow tokens consisting of more than one space to be merged as well I guess.

@uliska

uliska commented Sep 25, 2015 via email

Copy link
Copy Markdown
Collaborator Author

wbsoft added a commit that referenced this pull request Sep 25, 2015
colorize: "Melt" also over space characters
@wbsoft wbsoft merged commit ed6e63f into master Sep 25, 2015
@wbsoft wbsoft deleted the merge-html-spans branch September 25, 2015 22:10
bryantgeorge added a commit to bryantgeorge/python-ly that referenced this pull request Dec 19, 2019
Resolve "Support breath marks"

Closes frescobaldi#45

See merge request bgeorge/python-ly!52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants