1. Brendan Arnold
  2. py-fortranformat
  3. Issues
Issue #14 resolved

No Character Constant Output?

Anonymous created an issue


When using FortranRecordWriter, I can't seem to find a way to include Character Constant Outputs.

Is this feature supported?

Comments (3)

  1. Brendan Arnold repo owner

    You can use literals as an edit descriptor.

    ('My literal string')


    ('Don''t doubt this output: ', F4.3)

    Where to escape the single quote you put two of them in a row.

    Admittedly the other way, using the H edit descriptor, is not doing what I would expect on output. Also, for some reason there are no tests covering the H edit descriptor - even though I have recollections of testing for it in the past ... I'll have to look into this.

  2. Log in to comment