openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Documentation doesn't render multiline <pre> code sample

Open gregorwolf opened this issue 8 years ago • 5 comments

OpenUI5 version: master

Browser/version (+device/version): Google Chrome is up to date Version 67.0.3396.99 (Official Build) (64-bit)

Any other tested browsers/devices: FAIL

URL (minimal example if possible): https://openui5nightly.hana.ondemand.com/#/api/sap.ui.table.TreeTable/controlProperties

Steps to reproduce the problem:

  1. For the property expandFirstLevel in the documentation linked above an Example is provided how to use the binding parameter numberOfExpandedLevels instead of this deprecated property.
  2. When I check the source in src/sap.ui.table/src/sap/ui/table/TreeTable.js I can see that this includes:
			 * Example:
			 * <pre>
			 *   oTable.bindRows({
			 *      path: "...",
			 *      parameters: {
			 *         numberOfExpandedLevels: 1
			 *      }
			 *   });
			 * </pre>
			 *
			 * The value of the property 

What is the expected result? I would expect to see this example code also in the documentation.

What happens instead? The example code is not shown. Instead the text is "Example: The value of the property..."

Any other information?

screen shot 2018-07-14 at 17 30 19

gregorwolf avatar Jul 14 '18 15:07 gregorwolf

Hello @gregorwolf , Thank you for sharing this finding. I've created an internal incident 1880443613. The status of the issue will be updated here in GitHub. Regards, Diana

Shtilianova avatar Jul 20 '18 08:07 Shtilianova

Hi @gregorwolf ,

Thank you for reporting this issue. We have changed the documentation. In the next version it should be completely visible and much more readable than it is now.

Best regards, Alexander

JumpNRun avatar Aug 08 '18 10:08 JumpNRun

Hi @Shtilianova and @JumpNRun, so should it be visible in the nightly already? Or when will it apply to the documentation? Best regards Gregor

gregorwolf avatar Aug 08 '18 11:08 gregorwolf

Submitted 2hrs ago -> next nightly (tomorrow)

codeworrior avatar Aug 08 '18 12:08 codeworrior

OK, I finally found the place where this improvement is visible: https://openui5nightly.hana.ondemand.com/#/api/sap.m.Tree/methods/expandToLevel Thanks.

gregorwolf avatar Aug 30 '18 06:08 gregorwolf