question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set table class using style maps?

See original GitHub issue

Hello,

<w:tbl>
            <w:tblPr>
                <w:tblStyle w:val="tableone"/>
                <w:tblW w:w="0" w:type="auto"/>
                <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1"
                    w:lastColumn="0" w:noHBand="0" w:noVBand="1"/>
            </w:tblPr>
            <w:tblGrid>

With the above document excerpt, I am trying to set a class on the table styled with tableone style name. I am using the following style_map but the output is not giving me the desired result, which should be <table class="mytableone"></table> as specified in below style map settings:

style_map = """
tbl[style-name='tableone'] => table.mytableone:fresh
table[style-name='tableone'] => table.mytableone:fresh
"""

None of the above produces the needed output.

What is the best way to set table classes using Mammonth’s style map settings?

Thanks for your reply.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mwilliamsoncommented, Oct 6, 2017

There’s no reason not to add it, but I have no idea when I’d have time to do so.

0reactions
ssudhakcommented, Nov 15, 2021

@bitscompagnie @mwilliamson , Not sure if its working for me. Can you help me understand now to test it. I was trying something like below code.

table[style-name=‘body-st’] => div.body-st > table:fresh

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use tables to format your map content - Mapme
For example, you can style your table with borders and colors. There are 2 steps to create the tables. Add the table CSS...
Read more >
How to add a CSS table next to my google map?
I'm a CSS newbie and I need to learn how to use it right. I have a google map centered on the page...
Read more >
04. Styling
For each cell in the table, a style name can be set. A theme is a collection of styles that can easily be...
Read more >
QGIS Map Tips Table, style every other row
I simply want to style every other row in a table I've generated using map tips with a different coloured background. I've got...
Read more >
How to switch CSS class between buttons rendered with map()?
How to switch CSS class between buttons rendered with map()? ... Step 1: Create a React application using the following command:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found