Code Monkey home page Code Monkey logo

Comments (4)

KevinMarquette avatar KevinMarquette commented on August 23, 2024

I have not worked with the HTML syntax much. If I could get a sample of the output you needed, that would help me find a way to handle it.

from psgraph.

mcmiv413 avatar mcmiv413 commented on August 23, 2024

Sure so this:

graph basic {
    node a @{label="<TABLE><TR><TD><B><U>Node A</U></B></TD></TR></TABLE>"}
}  

Produces:

digraph basic {

    "a" [label="<TABLE><TR><TD><B><U>Node A</U></B></TD></TR></TABLE>";]
}

The quotes at the beginning and the end of the html need to be <>, it should be producing:

digraph basic {

    "a" [label=<<TABLE><TR><TD><B><U>Node A</U></B></TD></TR></TABLE>>;]
}

I've been fixing it by post processing the output:

$graph = graph basic {
    node a @{label="<TABLE><TR><TD><B><U>Node A</U></B></TD></TR></TABLE>"}
}  
$graph = $graph -replace '"<<','<<'
$graph = $graph -replace '>>"','>>'
$graph 

from psgraph.

KevinMarquette avatar KevinMarquette commented on August 23, 2024

Thank you for the examples. I have some local changes that should resolve this. I do need to rework a bunch of my unit tests before I merge the changes.

from psgraph.

KevinMarquette avatar KevinMarquette commented on August 23, 2024

I did a lot of refactoring, but I have this working. Resolved in #12 and deployed to the PSGallery

from psgraph.

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.