GithubHelp home page GithubHelp logo

Comments (6)

dmarkey avatar dmarkey commented on June 12, 2024
image

from schemaspy.

npetzall avatar npetzall commented on June 12, 2024

I haven't had time yet, but it's going to pass thru markdown processing so at least two spaces are needed before the line break.

But since it's imported from the SchemaMeta I wonder if some escaping is needed. Escaping to avoid the escaping since it seems to render it as \n.

Since it goes thru markdown it might be possible with <br/> but there is a risk that it will be escaped and rendered as is.

I'll see if I get a chans to look at it today.

from schemaspy.

dmarkey avatar dmarkey commented on June 12, 2024

Thank you!

from schemaspy.

npetzall avatar npetzall commented on June 12, 2024

Got to testing <br /> break XML syntax. The \n isn't translated correctly from XML to String in java(DocumentBuilder), so that doesn't yield the desired outcome. However DocumentBuilder translates html codes.

So to get the line breaks it's space + space +

<schemaMeta xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schemaspy.org/xsd/6/schemameta.xsd" >
    <comments>Database comment</comments>
    <tables>
        <table name="usr" comments="Line  &#10;with  &#10; no  &#10; hardbreak  \n">
            <column name="username" comments="Column comment"/>
        </table>
    </tables>
</schemaMeta>

from schemaspy.

dmarkey avatar dmarkey commented on June 12, 2024

Thanks!

Think we'll go the DB comment route.

Sorry slightly unrelated, do you know if there's a way to colour text?

from schemaspy.

npetzall avatar npetzall commented on June 12, 2024

@dmarkey markdown doesn't have that support. We could look if the framework we use has an extension for it. But no support at the moment, the only workarounds for it are really cumbersome by adding style sheet elements to the prior to the markdown, and it's too horrible to work with, so I would suggest to avoid it.

from schemaspy.

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.