<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Generally a hyphen&nbsp;is written at the end of the sentance when moving on to the next line and&nbsp;i managed to achieve this in haskell by using the "\n"- newline&nbsp;which places an index word in the next line i.e. if the words appear indexed&nbsp;like this...([1]),[mangoes] and a hyphen is applied, it becomes&nbsp;([1],[mang-oes]) and it is valid in my function as i made it accept hyphens as part of a single word. <BR>
&nbsp;<BR>
Now my problem is this...I'm assuming that the hyphen normally comes at the end of a sentence like this: "there are so many guys ravis-hing our women" and this can be demonstrated in haskell by "\n" which places the words or characters following it in a new line like this:<BR>
input: makeIndex"there are so many guys ravis\nhing our women" and output is:&nbsp;(([1],[there]),([1],[ravis]),([2],[hing])) where 1 means the first line and 2 the next. <BR>
&nbsp;<BR>
Now i want to write a function that would take away the hyphen and \n&nbsp; from all the words supposed to end&nbsp;on the first line and continue on the next and make all appear on the first line like this: all words in this form: "chip-\nheater"&nbsp;should become&nbsp;"chipheater". hope i can get some guidance on doing this.<BR><br /><hr />Connect to the next generation of MSN Messenger   <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>