Github user doanduyhai commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/164#issuecomment-124078145
  
    A question. What if I mix different magics ? Example:
    
    ```scala
    sc.parallelize(1 to 10)
    println("%table col\tcol2\nqwe\t123\n")
    println("%html <h3> This is a hack </h3>")
    ```
    
     In that case, what would be displayed ? A table or the HTML bloc ? I guess 
that in the source code of method `getType()` when we loop through all the 
types enums, the first type found in the output string will be retained.
    
    But then doing `msg.substring(magicLength + msg.indexOf(magic))` will give 
very different results depending on whether we match **%table%** or **%html%** 
before.
    
    Is this behavior deterministic or just depending on the order of the type 
enums ?
    
    
    



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to