Converting any TXT to HTML adds a "body" element with margin in css styles in .NET

Converting any text file (TXT and other text-formats) to HTML will generate a file with the following style tags:

<style>pre { white-space:normal; width:588px;} body { margin-top:60px; margin-left:60px; }</style>

We want to view the generated HTML in our application, but the css margin for the body element is messing up our layout.
Is there a way to avoid this? Or could it be removed in future versions?
GroupDocs.Viewer 20.6.1 was used in .NET

@Clemens_Pestuka

Yes, we could reproduce this at our end. It’s been logged in our internal issue tracking system with ID VIEWERNET-2608 for further investigation. As there’s any update, you will be notified.

1 Like