Entering content frame

Function documentation GET_NEWLINE_AFTER_IMAGE Method Locate the document in its SAP Library structure

Use

The GET_NEWLINE_AFTER_IMAGE method specifies whether or not a line break is inserted automatically after an <img> tag. If a mobile device displays two <img> tags side by side, a <br/> tag must be inserted to display in a new line. In mobile devices that meet the condition, only using the GET_NEWLINE_AFTER_IMAGE method in the source code can prevent the screens from being moved further apart by an inserted blank line.

This graphic is explained in the accompanying text

The same arguments for the use of this method apply to all methods that concern the line break into a new line.

Example

The following code fragment shows how to use this method:

<img src="test.gif"/>
<% if client_info->get_newline_after_image( )= ‘ ‘.%>
<br/>
<% endif.%>
<img src="test2.gif"/>

Interface IF_CLIENT_INFO

Leaving content frame