fixing chapter IDs that result in incorrect generated HTML file names

(cherry picked from commit 107694780ddbf391a2188c6945f07e8d6379c08d)

git-svn-id: https://svn.apache.org/repos/asf/cayenne/main/branches/STABLE-3.1@1555495 13f79535-47bb-0310-9956-ffa450edef68
decreasing the size of 'code' tags and increasing that of 'programlisting'

(cherry picked from commit 6ac097b5a1551e0265e914f37603e61533d581b7)

git-svn-id: https://svn.apache.org/repos/asf/cayenne/main/branches/STABLE-3.1@1555496 13f79535-47bb-0310-9956-ffa450edef68