Graeme Geldenhuys
2017-06-01 18:06:26 UTC
While creating some IPF based documentation I noticed a bug in WIPFC.
The behaviour is different to the original IBM's IPFC compiler.
WIPFC complains about a invalid tag in table cell on line 8. That's the
Paragraph tag in the first cell. The IBM's IPFC compiler compiles this
document with zero errors and the resulting rendering when viewed with
IBM's VIEW.exe application is exactly the same as the second cell
rendering where the :lines. tag is used. ie: the :p. tag starts a new
line, but no blank line is inserted. This is different to when the :p.
tag is used outside a table cell. As the sample document also shows -
the text after the table.
==============[ tabletest.ipf ]========================
:userdoc.
:title.Testing Table Cells
:h1.Table test
:table cols='60' rules='both' frame='box'.
:row.
:c.This is :link reftype=hd res=18.Clock:elink. 1
:p.
This is line 2.
:row.
:c.
:lines.
This is :link reftype=hd res=18.Clock:elink. 1
This is line 2.
:elines.
:etable.
:p.
This is :link reftype=hd res=18.Clock:elink. 1
:p.
This is line 2.
:p.
:hp2.See Also:ehp2.
:ul.
:li.:link reftype=hd res=18.Clock:elink.
:eul.
:h1 res=18.Clock
:p.
This is a :hp2.Clock:ehp2. topic.
:euserdoc.
=======================================================
I double checked the IBM IPF reference documentation, and they don't
actually mention the behaviour of the :p. tag inside a table cell. But
in such a case I would assuming using the current behaviour of the IBM
IPFC.exe should be adhered to.
The behaviour is different to the original IBM's IPFC compiler.
WIPFC complains about a invalid tag in table cell on line 8. That's the
Paragraph tag in the first cell. The IBM's IPFC compiler compiles this
document with zero errors and the resulting rendering when viewed with
IBM's VIEW.exe application is exactly the same as the second cell
rendering where the :lines. tag is used. ie: the :p. tag starts a new
line, but no blank line is inserted. This is different to when the :p.
tag is used outside a table cell. As the sample document also shows -
the text after the table.
==============[ tabletest.ipf ]========================
:userdoc.
:title.Testing Table Cells
:h1.Table test
:table cols='60' rules='both' frame='box'.
:row.
:c.This is :link reftype=hd res=18.Clock:elink. 1
:p.
This is line 2.
:row.
:c.
:lines.
This is :link reftype=hd res=18.Clock:elink. 1
This is line 2.
:elines.
:etable.
:p.
This is :link reftype=hd res=18.Clock:elink. 1
:p.
This is line 2.
:p.
:hp2.See Also:ehp2.
:ul.
:li.:link reftype=hd res=18.Clock:elink.
:eul.
:h1 res=18.Clock
:p.
This is a :hp2.Clock:ehp2. topic.
:euserdoc.
=======================================================
I double checked the IBM IPF reference documentation, and they don't
actually mention the behaviour of the :p. tag inside a table cell. But
in such a case I would assuming using the current behaviour of the IBM
IPFC.exe should be adhered to.
--
Regards,
- Graeme -
My public PGP key: http://tinyurl.com/graeme-pgp
Regards,
- Graeme -
My public PGP key: http://tinyurl.com/graeme-pgp