GitHub user Leemoonsoo opened a pull request: https://github.com/apache/zeppelin/pull/1981
[ZEPPELIN-2067] SparkInterpreter prints unnecessary newline ### What is this PR for? Spark interpreter prints unnecessary new line before the evaluation output is printed. See https://github.com/apache/zeppelin/pull/1975#issuecomment-277581660. This PR make SparkInterpreter ignores unnecessary preceding newline from ReplReporter.error() ### What type of PR is it? Bug Fix ### Todos * [x] - Ignore unnecessary preceding newline * [ ] - unittest ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-2067 ### How should this be tested? run ``` %spark import java.util.Date import java.net.URL ``` and see if result looks like (no new line in front of each lines) ``` import java.util.Date import java.net.URL ``` ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no You can merge this pull request into a Git repository by running: $ git pull https://github.com/Leemoonsoo/zeppelin ZEPPELIN-2067 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/1981.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1981 ---- commit 6908bdf14d0ba4bdcddb57dfed0dac3736d42e36 Author: Lee moon soo <m...@apache.org> Date: 2017-02-07T01:31:21Z Ignore preceding newline from scala RepleReporter.error ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---