Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply word break #174

Open
VPantaleo opened this issue Nov 6, 2024 · 6 comments
Open

Apply word break #174

VPantaleo opened this issue Nov 6, 2024 · 6 comments

Comments

@VPantaleo
Copy link

Hi,

how can i apply a word break in html to word conversion ?

Thanks

@onizet
Copy link
Owner

onizet commented Nov 8, 2024

Hello, to which style do you refer to

  • text-wrap
  • word-wrap
    What do you want to achieve? It's not supported yet but happy to add that feature

@VPantaleo
Copy link
Author

Hi,

Hi, thanks for replying, I need the word-wrap, but i use .net 6.0
you can ?

Thanks

@onizet
Copy link
Owner

onizet commented Nov 14, 2024

I was playing around with Word. it tooks me some time to realise I have to use the "Layout > Hyphenation"
Is this what you are looking for?
image

@VPantaleo
Copy link
Author

Hi,

I have testing

HtmlConverter converter = new HtmlConverter(mainPart);
Body body = mainPart.Document.Body;
converter.HtmlStyles.DefaultStyle = converter.HtmlStyles.GetStyle("Hyphenation");

but not working.

Immagine 2024-11-14 172716

@onizet
Copy link
Owner

onizet commented Nov 14, 2024

nah I didn't say that. I was referring to the Hyphenation that is part of MS Word functionality.
So you are seeking to have that auto-hyphenation in place, right?

Related CSS rule is more this one: https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens

text-wrap equivalent in MS Word is more when you embed an image around text.

@VPantaleo
Copy link
Author

Hi,

thanks for your answers,

but how can i apply the css on

?

Thanks

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

No branches or pull requests

2 participants