pyformat.info icon indicating copy to clipboard operation
pyformat.info copied to clipboard

Give an example of literal "{" and "}" usage

Open idgserpro opened this issue 9 years ago • 1 comments

We had some legacy code that we were converting, and a dynamic snippet of javascript generation was migrated from old style formatting that new .format uses.

Since it has javascript code with "{" and "}" literals

function test(){
}

that needs to be changed to

function test(){{
}}

We think it would be a nice addition to warn about this situation of literals in pyformat.info. We just don't know where is the best place to put it.

idgserpro avatar Oct 11 '16 14:10 idgserpro

Thanks for the suggestion. That is definitely something worth mentioning.

We're currently working on a "Version 2" of the site and will include this in the new version.

ulope avatar Oct 12 '16 00:10 ulope