code: private void appendInlineEvent(Event event) throws SAXException
      {
          cleanContentLeadingSpaces();
          cleanContentExtraWhiteSpaces();
  
          if (getContent().length() > 0) {
              sendPreviousContent(false);
  
              fPreviousInlineText.append(getContent());
  
              if (getContent().charAt(getContent().length() - 1) == ' ') {
                  fPreviousContent = getContent().toString();
                  fPreviousElements.add(event);
              } else {
                  sendCharacters(getContent().toString().toCharArray());
                  sendInlineEvent(event);
              }
  
              getContent().setLength(0);
          } else {
              if (fPreviousInlineText.length() == 0) {
                  // There is no inline text before this inline element
                  sendInlineEvent(event);
              } else {
                  // The last inline text ends with a space
                  fPreviousElements.add(event);
              }
          }
      }
docs: Append an inline element. Inline elements ending with a space are stacked
  waiting for a non space character or the end of the inline content.