I'm currently using the latest version of Flare v10 but I'm having an issue with some API code I would like to appear in both PDF and HTML5.
I paste the code in using the method described here: http://forums.madcapsoftware.com/viewto ... 10&t=20171
This would work fine for HTML5, but in Print, the code falls outside the margin. I.e., no word-wrap is being applied.
I've tried setting maximum width, I've tried setting margin-right, and I've even tried placing the <pre> element inside a table, but all to no avail. Am I missing something? I would like all the code to appear, with the spacing preserved, so that users can copy and paste from the PDF.
Thanks for your help! It is much appreciated!
The following is a sample of the code:
Code: Select all
/*log in request*/
{
"method": "exec",
"params": [
{
"url": "/sys/login/user",
"data": [
{
"user": "admin",
"passwd": "123456"
}
]
}
],
"id": 1,
"ver": "2.0"
},
/* log in response. */
{
"id": 1,
"ver": "2.0",
"result": {
"url": "/sys/login/user",
"status": {
"code": 0,
"message": "OK" /*"OK", or "WRONG_CREDENTIAL", "TIME_OUT", "TOO_MANY_FAILED_RETRY" , "WRONG_DATA" */
},
},
"session":"gzKj2PsMZ+4Hhs8Q9Ra+br+YStvpqWz\/8e291G1j1GI="
}