Comma after every item (but on the same line) in a vertical child cell layout?

If I simply put ',' in the separator field I get a comma between the items, but it shows on its own line.

I've experimented with a few separator style options and haven't found a way that works either.

Just to be clear here's what I have:

foo(
   a
   b
   c
)

Here's what I want:
foo(
   a,
   b,
   c
)
2 comments
Comment actions Permalink
Hi!

Thank you for your report. I've just corrected a problem in editor generator related to this situation.

In general solution here is: you should use indent layout for CellModel_RefNodeList containing items in this example. In addition you have to specify separator style for separator (,) with indent-layout-new-line attribute:

<no parentClass> {            
  indent-layout-new-line : true
}

Once again, this will work in next MPS build. Thank you for your report!
0
Comment actions Permalink
Great, I believe that was actually one of the things I had tried and was surprised by the results, glad I could help! I have tons more questions, but I'm trying to see if I can figure some of them out myself otherwise there'd just be 100 posts here by me :)
0

Please sign in to leave a comment.